﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 邮件接收
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2017-11-29 
    /// </summary>
    [Table("EXT_EMAILRECEIVE")]
    public class EmailReceiveEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 类型：【1-外部、0-内部】
        /// </summary>
        [Column("F_TYPE")]
        public int? Type { get; set; }
        /// <summary>
        /// 邮箱账户
        /// </summary>
        [Column("F_MACCOUNT")]
        public string MAccount { get; set; }
        /// <summary>
        /// MID
        /// </summary>
        [Column("F_MID")]
        public string MID { get; set; }
        /// <summary>
        /// 发件人
        /// </summary>
        [Column("F_SENDER")]
        public string Sender { get; set; }
        /// <summary>
        /// 发件人名称
        /// </summary>
        [Column("F_SENDERNAME")]
        public string SenderName { get; set; }
        /// <summary>
        /// 主题
        /// </summary>
        [Column("F_SUBJECT")]
        public string Subject { get; set; }
        /// <summary>
        /// 正文
        /// </summary>
        [Column("F_BODYTEXT")]
        public string BodyText { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [Column("F_ATTACHMENT")]
        public string Attachment { get; set; }
        /// <summary>
        /// 阅读
        /// </summary>
        [Column("F_READ")]
        public int? Read { get; set; }
        /// <summary>
        /// Date
        /// </summary>
        [Column("F_DATE")]
        public DateTime? Date { get; set; }
        /// <summary>
        /// 星标
        /// </summary>
        [Column("F_STARRED")]
        public int? Starred { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }
    }
}